<?php
include('databaseconnection.php');

  $term=$_POST['term'];
 
  $domain=$_POST['domain'];
  $language=$_POST['language'];
  $accepted_meaning=$_POST['meaning'];
  $suggested_by="vvjv";
  $suggested_date="";
  $checked_by="vhjbh";
  $accepted_date="";
  $votes=3;
  $comments="jhjknn";
  
  
  
  $query="INSERT INTO terms (term, domain, accepted_meaning, language, suggested_by, suggested_date, checked_by, accepted_date,votes,comments) VALUES ('$term', '$domain', '$accepted_meaning', '$language', '$suggested_by', '$suggested_date', '$checked_by', '$accepted_date','$votes','$comments')";
  $rez=mysql_query($query);
  if(!$rez) {echo "INvalid".mysql_error();}
  else{
  header("Location:addterm.php?msg=term is added");
  }
  ?>